/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: patricio caceres
 * License Type: Evaluation
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tan_tipoanotacionCriteria extends AbstractORMCriteria {
	public final IntegerExpression ta_id_tipoanotacion;
	public final StringExpression ta_descripcion;
	
	public Tan_tipoanotacionCriteria(Criteria criteria) {
		super(criteria);
		ta_id_tipoanotacion = new IntegerExpression("ta_id_tipoanotacion", this);
		ta_descripcion = new StringExpression("ta_descripcion", this);
	}
	
	public Tan_tipoanotacionCriteria(PersistentSession session) {
		this(session.createCriteria(Tan_tipoanotacion.class));
	}
	
	public Tan_tipoanotacionCriteria() throws PersistentException {
		this(orm.DocumentacionPersistentManager.instance().getSession());
	}
	
	public Tan_anotacionCriteria createTan_anotacionCriteria() {
		return new Tan_anotacionCriteria(createCriteria("ORM_Tan_anotacion"));
	}
	
	public Tan_tipoanotacion uniqueTan_tipoanotacion() {
		return (Tan_tipoanotacion) super.uniqueResult();
	}
	
	public Tan_tipoanotacion[] listTan_tipoanotacion() {
		java.util.List list = super.list();
		return (Tan_tipoanotacion[]) list.toArray(new Tan_tipoanotacion[list.size()]);
	}
}

